$.easing.easeOutQuart = function (x, t, b, c, d) {
    return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

$(document).ready(function(){
    
    if ($.cookie('anketa')=='glasao') {
        $('#pool_submit').attr('disabled','disabled');        
    }

    $('#last_published').serialScroll({
        items:'.slide',
        prev:'#last_published_nav a.prev',
        next:'#last_published_nav a.next',
        duration:1200,
        force:true,
        stop:true,
        lock:false,
        cycle:false, //don't pull back once you reach the end
        easing:'easeOutQuart' //use this easing equation for a funny effect
    });
    
    $('#last_commented').serialScroll({
        items:'.slide',
        prev:'#last_commented_nav a.prev',
        next:'#last_commented_nav a.next',
        duration:1200,
        force:true,
        stop:true,
        lock:false,
        cycle:false, //don't pull back once you reach the end
        easing:'easeOutQuart' //use this easing equation for a funny effect
    });
    
    $('#most_popular').serialScroll({
        items:'.slide',
        prev:'#most_popular_nav a.prev',
        next:'#most_popular_nav a.next',
        duration:1200,
        force:true,
        stop:true,
        lock:false,
        cycle:false, //don't pull back once you reach the end
        easing:'easeOutQuart' //use this easing equation for a funny effect
    });
});

